The Enchanted Forest - Codeforces | Binary Search On Answer